package com.sqm.exception;

import lombok.Getter;

/**
 * 功能: 自定义异常
 * 作者: 沙琪马
 * 日期: 2024/5/21 18:32
 */
@Getter
public class ServiceException extends RuntimeException{
    private final String code;

    public ServiceException(String msg) {
        super(msg);
        this.code = "500";
    }


    public ServiceException(String code,String msg) {
        super(msg);
        this.code=code;
    }
}
